#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>

namespace Ui {
class MainWidget;
}

class QmlVirtualKeyboard;
class MainWidget : public QWidget {
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

protected:
    void changeEvent(QEvent* e)override;
    bool eventFilter(QObject *watched, QEvent *event)override;

private:
    Ui::MainWidget *ui;
    QmlVirtualKeyboard *kbd;
    void loadSystemConfig();
    void applySystemConfig();

    // QWidget interface
protected:
    void mousePressEvent(QMouseEvent *event);
};

#endif // MAINWIDGET_H
